import req from '../common/requrest.js'
export const getPrizeList = (data) => {
	return req.ajax({
		// title: "获取抽奖列表",
		method: "GET",
		path: '/api/prize/list',
		data,
	})
} 

export const setUserCost = (data) => { // 抽奖接口
	return req.ajax({
		title: "进行抽奖",
		method: "POST",
		path: '/api/user/cost',
		data,
	})
} 

export const getPrizeCode = (data) => { // 抽奖接口
	return req.ajax({
		title: "获取兑换码中",
		method: "GET",
		path: '/api/user/prize-code',
		data,
	})
} 
